export default {
	state() {
		return {
			token: uni.getStorageSync('token')
		}
	},
	mutations: {
		setToken (state,data) {
			state.token = data
			uni.setStorageSync('token',data)
		},
		clearUserInfo (state,data) {
			uni.removeStorageSync('token')
		}
	}
}